const About = require("./models/About");

exports.getAbout = async()=>{
    const ins = await About.findOne();
    return ins.toJSON().url;
}

exports.setAbout = async(info)=>{
    await About.update(info, {
        where: {
            id: 1
        }
    });
    const ins = await About.findOne();
    return ins.toJSON();
}
